package mx.com.crowdgine.assetloader;

import java.awt.image.BufferedImage;
import java.io.IOException;

import junit.framework.Assert;

import org.junit.Test;

public class BitmapLoaderTest {

	@Test
	public void testJointTexture() throws IOException {
		BufferedImage image = BitmapLoader.loadBitmap("Assets/Textures/joints.bmp");
		int rgb = image.getRGB(14, 9);
		
		Assert.assertEquals(12, (byte)(rgb >> 16));
		Assert.assertEquals(0, (byte)(rgb >> 8));
		Assert.assertEquals(0, (byte)(rgb));
		
	}
	
}
